package com.codeazur.as3swf.utils
{
   import com.codeazur.as3swf.data.SWFMatrix;
   
   public class MatrixUtils
   {
       
      
      public function MatrixUtils()
      {
         super();
      }
      
      public static function interpolate(param1:SWFMatrix, param2:SWFMatrix, param3:Number) : SWFMatrix
      {
         var _loc4_:SWFMatrix = null;
         _loc4_ = new SWFMatrix();
         _loc4_.scaleX = param1.scaleX + (param2.scaleX - param1.scaleX) * param3;
         _loc4_.scaleY = param1.scaleY + (param2.scaleY - param1.scaleY) * param3;
         _loc4_.rotateSkew0 = param1.rotateSkew0 + (param2.rotateSkew0 - param1.rotateSkew0) * param3;
         _loc4_.rotateSkew1 = param1.rotateSkew1 + (param2.rotateSkew1 - param1.rotateSkew1) * param3;
         _loc4_.translateX = param1.translateX + (param2.translateX - param1.translateX) * param3;
         _loc4_.translateY = param1.translateY + (param2.translateY - param1.translateY) * param3;
         return _loc4_;
      }
   }
}
